package com.lxy.all;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.Vector;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
*lxy
*/
public class OrderList {
	private ArrayList<Wordbean> arraylist;
	final static Logger logger = LoggerFactory.getLogger(OrderList.class);
	public OrderList(){
		arraylist=new ArrayList<Wordbean>();
	}
	
	public void insertlist(Wordbean bean){
		arraylist.add(bean);
	}
	public void printlist(){
		  Collections.sort(arraylist);
		  System.out.println("length-->"+arraylist.get(0).getWord().length());
		  for(Wordbean wb:arraylist){
			  System.out.println("word:"+wb.getWord()+" number:"+wb.getNum());
		  }
	}
	
	

}
